﻿namespace GoodAdmin.CodeGenerator;

public interface IDbService
{
    /// <summary>
    /// 获取数据库信息
    /// </summary>
    /// <returns></returns>
    List<DbConfigOutput> GetDbConfig();
    /// <summary>
    /// 获取数据表信息
    /// </summary>
    /// <returns></returns>
    List<DbTableInfo> GetTables(string ConfigId);
    /// <summary>
    /// 获取数据表字段信息
    /// </summary>
    /// <param name="ConfigId"></param>
    /// <param name="TableNames"></param>
    /// <returns></returns>
    List<TableFileds> GetTableField(string ConfigId, string TableNames);
    /// <summary>
    /// 创建数据表
    /// </summary>
    /// <returns></returns>
    Task CreateTable();
}